#include <stdio.h>
#include <string.h>

int main(int argc, const char *argv[])
{
	char buff[128] = {0};
	gets(buff);

	char temp[3] = {0};
	char *p = buff;
	char *q = buff;
	while(*p)
		p++;
	p -= 3; // 指向最后一个中文的首地址
	while(q < p){
		strncpy(temp, p, 3);
		strncpy(p, q, 3);
		strncpy(q, temp, 3);
		p -= 3;
		q += 3;
	}
	printf("%s\n", buff);

	return 0;
}
